package cate.game.rank.h;

import cate.common.table.d.GDCamp;
import cate.common.table.d.GDRank;
import cate.game.rank.po.HeroRankSPO;
import cate.game.role.Role;

public class CampHeroPowerHandler extends HeroRankHandler{
    private byte camp;

    public CampHeroPowerHandler(byte camp){
        this.camp = camp;
    }

    @Override
    protected String getTag() {
        return "hero_camp_" + camp;
    }

    @Override
    protected HeroRankSPO createSPO() {
        return new HeroRankSPO();
    }

    @Override
    public int getRankId() {
        if(camp == GDCamp.Type.C1){
            return GDRank.Id.WATER_SCORE_RANK_ID;
        }else if(camp == GDCamp.Type.C2){
            return GDRank.Id.FIRE_SCORE_RANK_ID;
        }else if(camp == GDCamp.Type.C3){
            return GDRank.Id.WOOD_SCORE_RANK_ID;
        }else if(camp == GDCamp.Type.C4){
            return GDRank.Id.EARTH_SCORE_RANK_ID;
        }else if(camp == GDCamp.Type.C5){
            return GDRank.Id.BRIGHT_SCORE_RANK_ID;
        }else if(camp == GDCamp.Type.C6){
            return GDRank.Id.DARK_SCORE_RANK_ID;
        }
        return 0;
    }

    @Override
    public long getRoleCurrentValue(Role role) {
        return 0;
    }

    @Override
    public long getRoleCurrentExtraValue(Role role) {
        return 0;
    }

    @Override
    public long getConditionValue() {
        return 10000;
    }
}
